package org.jeecg.modules.monitoring.j_monitoring.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.jeecg.modules.monitoring.j_monitoring.entity.MGlVirtualizationCluster;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * @Description: 虚拟化群集
 * @Author: xiaoyq
 * @Date:   2023-02-23
 * @Version: V1.0
 */
public interface IMGlVirtualizationClusterService extends IService<MGlVirtualizationCluster> {

    /**
     * 根据群集Id查询设备地图数据
     * @param clusterId
     * @return
     */
    JSONObject getDeviceMapById(JSONArray nodes, JSONArray edges,int startX,int startY, String clusterId);

    /**
     * 格努群集Id获得设备树
     * @param clusterId
     * @return
     */
    JSONObject getDeviceTreeById(String clusterId);

    /**
     * 分析群集
     * @param cluster
     * @return
     */
    List analysis(MGlVirtualizationCluster cluster);

    void getHomeData(List<MGlVirtualizationCluster> clusterList);

    void setMonData(Map<String,Object> map,List<MGlVirtualizationCluster> clusterList);
}
